<template>
    <div class="swiper-container filmswiper">
        <div class="swiper-wrapper">
            <slot></slot>
        </div>
        <!-- 如需分页器 -->
        <div class="swiper-pagination film-swiper-pagination"></div>
    </div>
</template>

<script>
import Swiper from 'swiper'
import 'swiper/css/swiper.min.css'
export default {
  props: ['perview', 'myclassname'],
  mounted () {
    var ss = new Swiper('.' + this.myclassname, {
      slidesPerView: this.perview,
      spaceBetween: 10,
      freeMode: true
    })
    console.log(ss)
  }
}
</script>
<style lang="scss" scoped>
.swiper-wrapper{
    img{
        width:100%;
    }
}
.film-swiper-pagination{
    text-align: right;
}
</style>
